<%@ page language="java" contentType="text/html; UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ page import="java.util.HashMap" %>
<html>
  <head><title><fmt:message key="title" /></title></head>
  <body>
    <h1><fmt:message key="heading" /></h1>
    <p><fmt:message key="greeting" /><c:out value="${model.now}"/></p>
    <h3>Products</h3>
    <c:forEach items="${model.products}" var="prod">
    	<c:out value="${prod.description }"/><i></i><c:out value="${prod.price }"></c:out></i><br><br>
    </c:forEach>
    <%-- 
    <%HashMap<String, Object> model = (HashMap)request.getAttribute("model"); %>
    <%String now = (String)model.get("now"); %>
    <%=now %>
    --%>
  </body>
</html>